<!-- src/views/NotFound.vue -->
<template>
  <div class="not-found-container">
    <h1>404</h1>
    <p>抱歉，您访问的页面不存在。</p>
    <router-link to="/dashboard" class="back-home-link">返回首页</router-link>
  </div>
</template>

<style scoped>
.not-found-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%; /* 撑满父容器 main-content 的高度 */
  text-align: center;
  padding: 50px;
}

h1 {
  font-size: 6rem;
  font-weight: bold;
  color: #ccc;
  margin: 0;
}

p {
  font-size: 1.5rem;
  color: #666;
  margin: 20px 0;
}

.back-home-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #1890ff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.back-home-link:hover {
  background-color: #40a9ff;
}
</style>